/*
 *  Copyright 2010 Andrew Kroh
 *
 *  Kroh-IO is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Kroh-IO is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef KROHIO_UTIL_H_
#define KROHIO_

// Debug Levels
#define DEBUG_OFF 0
#define DEBUG_ERROR 2
#define DEBUG_WARN 4
#define DEBUG_INFO 5
#define DEBUG_DEBUG 6
#define DEBUG_TRACE 8

/**
 * Alias to debug_print.
 */
#define dp(...) debug_print(__VA_ARGS__)

void print_copyright();

void set_debug_level(int debug_level);

void debug_print(int debug_level, const char *msg, ...);

#endif // KROHIO_UTIL_H_

